package com.todo.sight.application.iface.backend.response;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.todo.common.common.enums.CityTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author zhangwenxiang
 * @date 2024/3/17 15:32
 * @description
 */
@Data
@Schema(title = "城市详情出参",description = "城市详情出参")
public class CityInfoDetailResp {
    /**
     * 主键id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(title = "主键id",description = "主键id")
    private Long id;
    /**
     * 名称
     */
    @Schema(title = "名称",description = "名称")
    private String name;
    /**
     * 类型：省、市、区等
     * {@link CityTypeEnum}
     */
    @Schema(title = "类型",description = "省、市、区等")
    private Integer type;
    /**
     * 父id
     */
    @Schema(title = "父id",description = "父id")
    private Long parentId;
    /**
     * 别名
     */
    @Schema(title = "别名",description = "别名")
    private String otherName;
    /**
     * 主图
     */
    @Schema(title = "主图",description = "主图")
    private String mainImg;
    /**
     * 描述
     */
    @Schema(title = "描述",description = "描述")
    private String desc;
    /**
     * 是否对外展示
     */
    @Schema(title = "是否对外展示",description = "是否对外展示")
    private Integer isShow;
    /**
     * 经度
     */
    @Schema(title = "经度",description = "经度")
    private String lon;
    /**
     * 纬度
     */
    @Schema(title = "纬度",description = "纬度")
    private String lat;
}
